<%@ page import="com.cskaoyan.salary.bean.Record" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/22
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%
            List<Record> records = (List<Record>) request.getAttribute("records");
        %>
        <table border="2" >
            <tr align="center"><td>编号</td><td>转出方</td><td>转入方</td><td>金额</td><td>交易时间</td></tr>
        <%
            for (int i = 0; i < records.size(); i++) {
        %>
            <tr align="center">
                <td><%=records.get(i).getId()%></td>
                <td><%=records.get(i).getOut()%></td>
                <td><%=records.get(i).getIn()%></td>
                <td><%=records.get(i).getMoney()%></td>
                <td><%=records.get(i).getTransfer()%></td>
            </tr>
        <%
            }
        %>
        </table>
</body>
</html>
